import request from '@/utils/request'
export default {
    getsubjectList() {
        return request({
          url: `/teacher/getAllSubject`,
          method: 'get'
        })
      },
      getsubjectInfo(id) {
        return request({
          url: `/teacher/get/subject/${id}`,
          method: 'get'
        })
      },
      saveSubjectInfo(subject) {
        return request({
          url: `/teacher/updataSubject`,
          method: 'post',
          data:subject
        })
      },
      //添加shuject
      addSubject(subject){
        return request({
          url: `/teacher/insertSubject`,
          method: 'post',
          data:subject
        })
      },
      //删除shubject
      removeSubject(subjectId) {
        return request({
          url: `/teacher/deleteSubject/${subjectId}`,
          method: 'delete'
        })
      },
      getSubjectInfoVOList(selectObj) {
        return request({
          url: `/teacher/get/subject/info/list`,
          method: 'post',
          data:selectObj
        })
      },
      getsubjectSelectList(className){
        return request({
          url: `/teacher/get/subject/selected/${className}`,
        method: 'get'
        })
       

      }
    
      


}